#include <iostream>
using namespace std;

class Student
{
    private:
        char *m_name;
        int m_age;

    public:
        /* 声明构造函数 */
        Student(char *name, int age)
        {
            m_name = name;
            m_age = age;
        }
        /* 声明普通成员函数 */
        void show()
        {
            cout<<"name="<<m_name<<",age="<<m_age<<endl;
        }
};
/* 构造函数 */
int main()
{
    char name[] = "大黑";
    Student stu(name, 10);
    stu.show();
    return 0;
}